import request from '@/utils/request'

// 查询成品仓库管理列表
export function listFpWarehouse(query) {
  return request({
    url: '/fpWarehouse/fpWarehouse/list',
    method: 'get',
    params: query
  })
}

// 查询成品仓库管理详细
export function getFpWarehouse(id) {
  return request({
    url: '/fpWarehouse/fpWarehouse/' + id,
    method: 'get'
  })
}

// 新增成品仓库管理
export function addFpWarehouse(data) {
  return request({
    url: '/fpWarehouse/fpWarehouse',
    method: 'post',
    data: data
  })
}

// 修改成品仓库管理
export function updateFpWarehouse(data) {
  return request({
    url: '/fpWarehouse/fpWarehouse',
    method: 'put',
    data: data
  })
}

// 成品出入库
export function updateFpWarehouseQuantity(data) {
  return request({
    url: '/fpWarehouse/fpWarehouse/updateFpWarehouseQuantity',
    method: 'put',
    data: data
  })
}

//转移网联库
export function transferInventory(data) {
  return request({
    url: '/fpWarehouse/fpWarehouse/transferInventory',
    method: 'put',
    data: data
  })
}

// 删除成品仓库管理
export function delFpWarehouse(id) {
  return request({
    url: '/fpWarehouse/fpWarehouse/' + id,
    method: 'delete'
  })
}
